﻿<Window x:Class="ScriptExecutorWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Script Execution" Height="462" Width="700" Name="Window1" Icon="/DBScriptRunner;component/Utility_VBScript.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
            
        </Grid.RowDefinitions>
        
        <Grid>
            <TextBlock Margin="2" FontWeight="Bold">Results</TextBlock>
        </Grid>
        
        <!-- Results -->
        <TextBox Grid.Row="1" x:Name="LogText" IsReadOnly="True" AcceptsReturn="True" AcceptsTab="True" TextWrapping="WrapWithOverflow" HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Visible">
        </TextBox>
        
        <!-- Status Bar -->
        <Grid HorizontalAlignment="Stretch" Grid.Row="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            
            <StackPanel Orientation="Horizontal">
                <Image Margin="2" x:Name="BuildCompletedImage" Source="/DBScriptRunner;component/Images/BuildCompleted.gif" Visibility="Collapsed"></Image>
                <Image Margin="2" x:Name="BuildInProgressImage" Source="/DBScriptRunner;component/Images/BuildInProgress.gif"  Visibility="Collapsed"></Image>
                <Image Margin="2" x:Name="BuildFailedImage" Source="/DBScriptRunner;component/Images/BuildFailed.gif"  Visibility="Collapsed"></Image>
                <TextBlock x:Name="tbStatus" VerticalAlignment="Center" Margin="2" ></TextBlock>
            </StackPanel>
            
            
            
            <Button Grid.Column="2" HorizontalAlignment="Right" Margin="2" MinWidth="60" ToolTip="Click this to cancel execution" x:Name="CancelButton" Click="CancelButton_Click">Cancel</Button>
        </Grid>
                
            
        
        
    </Grid>
</Window>
